package com.qidian.buy.controller;

import com.qidian.buy.service.ItemService;
import com.qidian.buy.util.pojo.QdResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 戴着假发的程序员
 * @company 起点编程
 * @date 2023/9/14 13:42
 */
@RestController
@RequestMapping("/item")
public class ItemController {
    @Autowired
    private ItemService itemService;

    @RequestMapping("/gen")
    public QdResult gen(Long itemId){
        return itemService.genDetailStatic(itemId);
    }
}
